function GetSourceName(Source)
{
    var Name = '';
    switch (Source) {
        case 1:
            Name = '促销活动';
            break;
        case 2:
            Name = '搜索引擎';
            break;
        case 3:
            Name = '广告';
            break;
        case 4:
            Name = '转介绍';
            break;
        case 5:
            Name = '线上注册';
            break;
        case 6:
            Name = '线上询价';
            break;
        case 7:
            Name = '预约上门';
            break;
        case 8:
            Name = '陌拜';
            break;
        case 9:
            Name = '招商资源';
            break;
        case 10:
            Name = '公司资源';
            break;
        case 11:
            Name = '展会资源';
            break;
        case 12:
            Name = '个人资源';
            break;
        case 13:
            Name = '电话咨询';
            break;
        case 14:
            Name = '邮件咨询';
            break;
        default:
            break;
    }
    return Name;
}
function GetIndustryName(Industry)
{
    Name = '';
    switch (Industry) {
        case 1:
            Name = 'IT/通信/电子/互联网';
            break;
        case 2:
            Name = '金融业';
            break;
        case 3:
            Name = '房产业';
            break;
        case 4:
            Name = '商业服务';
            break;
        case 5:
            Name = '贸易';
            break;
        case 6:
            Name = '生产';
            break;
        case 7:
            Name = '运输物品';
            break;
        case 8:
            Name = '服务业';
            break;
        case 9:
            Name = '文化传媒';
            break;
        case 10:
            Name = '政府';
            break;
        case 11:
            Name = '其他';
            break;
    }
    return Name;
}
function GetLevelName(Level)
{
    Name = 'A类（重点客户）';
    switch (Level) {
        case 'B':
            Name = 'B类（普遍客户）';
            break;
        case 'C':
            Name = 'C类（非优先客户）';
            break;
    }
    return Name;
}
function GetSourceNum(Source)
{
    Name = 0;
    switch (Source) {
        case '促销活动':
            Name = 1;
            break;
        case '搜索引擎':
            Name = 2;
            break;
        case '广告':
            Name = 3;
            break;
        case '转介绍':
            Name = 4;
            break;
        case '线上注册':
            Name = 5;
            break;
        case '线上询价':
            Name = 6;
            break;
        case '预约上门':
            Name = 7;
            break;
        case '陌拜':
            Name = 8;
            break;
        case '招商资源':
            Name = 9;
            break;
        case '公司资源':
            Name = 10;
            break;
        case '展会资源':
            Name = 11;
            break;
        case '个人资源':
            Name = 12;
            break;
        case '电话咨询':
            Name = 13;
            break;
        case '邮件咨询':
            Name = 14;
            break;
        default:
            break;
    }
    return Name;
}
function mb_ClientNameOnClick(ID) {
    layer.open({
        title: '提示'
        ,type: 2
        ,content: 'ClientDetail?ClientID='+ID
        ,area: ['160rem', '80rem']
    });
}